home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / mimelib / utility.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-14  |  2.2 KB  |  51 lines

  1. //=============================================================================
  2. // File:       utility.h
  3. // Contents:   Declarations of utility functions for MIME++
  4. // Maintainer: Doug Sauder <dwsauder@fwb.gulf.net>
  5. // WWW:        http://www.fwb.gulf.net/~dwsauder/mimepp.html
  6. //
  7. // Copyright (c) 1996, 1997 Douglas W. Sauder
  8. // All rights reserved.
  9. // 
  10. // IN NO EVENT SHALL DOUGLAS W. SAUDER BE LIABLE TO ANY PARTY FOR DIRECT,
  11. // INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF
  12. // THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF DOUGLAS W. SAUDER
  13. // HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  14. //
  15. // DOUGLAS W. SAUDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT
  16. // NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  17. // PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS"
  18. // BASIS, AND DOUGLAS W. SAUDER HAS NO OBLIGATION TO PROVIDE MAINTENANCE,
  19. // SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  20. //
  21. //=============================================================================
  22.  
  23. #ifndef DW_UTILITY_H
  24. #define DW_UTILITY_H
  25.  
  26. #ifndef DW_CONFIG_H
  27. #include <mimelib/config.h>
  28. #endif
  29.  
  30. class DwString;
  31.  
  32.  
  33. void DW_EXPORT DwInitialize();
  34. void DW_EXPORT DwFinalize();
  35. int  DW_EXPORT DwCteStrToEnum(const DwString& aStr);
  36. void DW_EXPORT DwCteEnumToStr(int aEnum, DwString& aStr);
  37. int  DW_EXPORT DwTypeStrToEnum(const DwString& aStr);
  38. void DW_EXPORT DwTypeEnumToStr(int aEnum, DwString& aStr);
  39. int  DW_EXPORT DwSubtypeStrToEnum(const DwString& aStr);
  40. void DW_EXPORT DwSubtypeEnumToStr(int aEnum, DwString& aStr);
  41. int  DW_EXPORT DwToCrLfEol(const DwString& aSrcStr, DwString& aDestStr);
  42. int  DW_EXPORT DwToLfEol(const DwString& aSrcStr, DwString& aDestStr);
  43. int  DW_EXPORT DwToCrEol(const DwString& aSrcStr, DwString& aDestStr);
  44. int  DW_EXPORT DwToLocalEol(const DwString& aSrcStr, DwString& aDestStr);
  45. int  DW_EXPORT DwEncodeBase64(const DwString& aSrcStr, DwString& aDestStr);
  46. int  DW_EXPORT DwDecodeBase64(const DwString& aSrcStr, DwString& aDestStr);
  47. int  DW_EXPORT DwEncodeQuotedPrintable(const DwString& aSrcStr, DwString& aDestStr);
  48. int  DW_EXPORT DwDecodeQuotedPrintable(const DwString& aSrcStr, DwString& aDestStr);
  49.  
  50. #endif
  51.